package com.haoshuang.zhouzhoubang.ui.adapter

import com.chad.library.adapter4.BaseQuickAdapter
import com.haoshuang.zhouzhoubang.R
import com.haoshuang.zhouzhoubang.databinding.ItemBondBinding
import com.haoshuang.zhouzhoubang.model.bean.BondBean
import com.mufeng.libs.base.BaseBindingHolder
import com.mufeng.libs.base.BaseBindingQuickAdapter


class BondAdapter(data: MutableList<BondBean.List2>) :
    BaseBindingQuickAdapter<BondBean.List2, ItemBondBinding>(data) {

    override fun onBindViewHolder(holder: BaseBindingHolder, position: Int, item: BondBean.List2?) {
        val binding = ItemBondBinding.bind(holder.itemView)
        binding.apply {
            cateName.text = item?.cate_name
            authCost.text = "¥" + item?.auth_cost

        }
    }

}